﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using System.Text;
using Vit.Web.Extensions;
using Vit.Web.Models;

namespace Vit.Mvc.Modules
{
    public class BannerModule : IWebModule
    {
        #region IWebModule Members

        public Guid ModuleID
        {
            get { return new Guid("32284786-00B2-4851-90F6-61C599F8E7BD"); }
        }

        public string Icon64X64
        {
            get { return string.Format("/Themes/Default/Images/Banner64X64.jpg"); }
        }

        public string Icon32X32
        {
            get { return string.Format("/Themes/Default/Images/Banner32X32.jpg"); }
        }

        public string Icon16X16
        {
            get { return string.Format("/Themes/Default/Images/Banner16X16.jpg"); }
        }

        public string ViewUrl
        {
            get { return "/Banner/Show"; }
        }

        public string EditUrl
        {
            get { return "/Banner/Edit"; }
        }

        public string SettingUrl
        {
            get { return "/Banner/Setting"; }
        }

        public string DesignUrl
        {
            get { return "/Banner/Design"; }
        }

        public string ImportUrl
        {
            get { return "/Banner/Import"; }
        }

        public string ExportUrl
        {
            get { return "/Banner/Export"; }
        }

        public string HelpUrl
        {
            get { return "/Banner/Help"; }
        }

        public IEnumerable<INavigationItem> MenuItems
        {
            get { return null; }
        }

        public XElement Parameters { get; set; }

        #endregion

        #region IVersion Members

        public string Name
        {
            get { return "BannerModule.Name".Locale(); }
        }

        public string Description
        {
            get { return "BannerModule.Description".Locale(); }
        }

        public Version CurrentVersion
        {
            get { return new Version("1.0.0.0"); }
        }

        public DateTime RealeaseDate
        {
            get { return new DateTime(2010, 10, 1); }
        }

        public string CopyRight
        {
            get { return "BannerModule.CopyRight".Locale(); }
        }

        #endregion
    }
}
